<template>
  <div id="recommended-site">
    <div
      style="display: flex; justify-content: space-between"
    >
      <div class="top-border" style="width: 49%">
        <div class="query-title">选择查询条件:</div>
        <div style="color: #004ca7; margin-top: 20px">
          <div class="query-date">
            <div class="query-item">
                <span>周&nbsp;&nbsp;&nbsp;次：<span class="red">*</span></span>
                <el-select v-model="startWeek" placeholder="请选择" size="mini" style="width: 120px;">
                <el-option
                    v-for="(item, index) in sectionList"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                >
                </el-option>
                </el-select>
                <span class="mar-lef-2 mar-rig-2">至</span>
                <el-select v-model="endWeek" placeholder="请选择" size="mini" style="width: 120px;">
                <el-option
                    v-for="(item, index) in sectionList"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                >
                </el-option>
                </el-select>
            </div>
            <div class="query-item">
                <span>校&nbsp;&nbsp;&nbsp;&nbsp;区：</span>
                <el-select v-model="xiaoqu" placeholder="请选择" size="mini" style="width: 120px;">
                <el-option
                    v-for="(item, index) in xiaoquList"
                    :key="item.id"
                    :label="item.deptName"
                    :value="item.id"
                >
                </el-option>
                </el-select>
                <span class="mar-rig-2" style="margin-left: 200px;">场地类型：</span>
                <el-select v-model="changdiType" placeholder="请选择" size="mini" style="width: 120px;">
                <el-option
                    v-for="(item, index) in changdiTypeList"
                    :key="item.id"
                    :label="item.name"
                    :value="item.id"
                >
                </el-option>
                </el-select>
            </div>
            <div class="query-item">
                <span>教学楼：</span>
                <el-select v-model="jxl" placeholder="请选择" size="mini" style="width: 120px;">
                <el-option
                    v-for="(item, index) in jxlList"
                    :key="item.id"
                    :label="item.deptName"
                    :value="item.id"
                >
                </el-option>
                </el-select>
                <span class="mar-rig-2" style="margin-left: 200px;">容纳人数：</span>
                <el-input oninput="value=value.replace(/^\.+|[^\d.]/g,'')" v-model="krnrs" style="width: 120px;"></el-input>
            </div>
          </div>
        </div>
      </div>
      <div class="top-border" style="width: 49%">
        <div class="query-title">请选择查询条件：</div>
        <div style="color: #004ca7; margin-top: 20px">
          <div class="query-date">
              <div class="query-item">
            <span>星期：<span class="red">*</span></span>
            <el-select v-model="semester1" placeholder="请选择" size="mini" style="width: 100px;">
              <el-option
                v-for="(item, index) in semesterList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>

            <span class="mar-lef-2">节次：<span class="red">*</span></span>
            <el-select v-model="startSection1" placeholder="请选择" size="mini" style="width: 100px;">
              <el-option
                v-for="(item, index) in weekList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>

            <span class="mar-lef-2 mar-rig-2">至</span>
            <el-select v-model="endSection1" placeholder="请选择" size="mini" style="width: 100px;">
              <el-option
                v-for="(item, index) in weekList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </div>
          <div class="query-item">
            <span>星期：<span class="red">&nbsp;&nbsp;</span></span>
            <el-select v-model="semester2" placeholder="请选择" size="mini" style="width: 100px;">
              <el-option
                v-for="(item, index) in semesterList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>

            <span class="mar-lef-2">节次：<span class="red">&nbsp;&nbsp;</span></span>
            <el-select v-model="startSection2" placeholder="请选择" size="mini" style="width: 100px;">
              <el-option
                v-for="(item, index) in weekList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>

            <span class="mar-lef-2 mar-rig-2">至</span>
            <el-select v-model="endSection2" placeholder="请选择" size="mini" style="width: 100px;">
              <el-option
                v-for="(item, index) in weekList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </div>
          <div class="query-item">
            <span>星期：<span class="red">&nbsp;&nbsp;</span></span>
            <el-select v-model="semester3" placeholder="请选择" size="mini" style="width: 100px;">
              <el-option
                v-for="(item, index) in semesterList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>

            <span class="mar-lef-2">节次：<span class="red">&nbsp;&nbsp;</span></span>
            <el-select v-model="startSection3" placeholder="请选择" size="mini" style="width: 100px;">
              <el-option
                v-for="(item, index) in weekList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>

            <span class="mar-lef-2 mar-rig-2">至</span>
            <el-select v-model="endSection3" placeholder="请选择" size="mini" style="width: 100px;">
              <el-option
                v-for="(item, index) in weekList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>

            <div class="search-button" style="margin-left: 60px" @click="queryPlaceIjnfo">
              <img src="../../../../assets/assessment/icon-search.png" alt="" />
              <span>查询</span>
            </div>
          </div>

          </div>
        </div>
      </div>
    </div>

    <div class="assessment-container">
      <div class="table-container">
        <el-table
          :data="tableData"
          border
          class="table-data"
          row-class-name="row-class"
          cell-class-name="cell-class"
          header-row-class-name="header-row-class"
          header-cell-class-name="header-cell-class"
          style="height: 300px; overflow-y: auto"
          @selection-change="handleSelectionChange"
        >
          <el-table-column
            type="selection"
            width="80"
            align="center"
          ></el-table-column>
          <el-table-column
            prop="cdmc"
            label="场地场所名称"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="mj"
            label="面积(平方米)"
            align="center"
          ></el-table-column>
          <el-table-column
            prop="krnrs"
            label="容纳人数"
            align="center"
          ></el-table-column>
          <el-table-column
            prop="cdlx"
            label="场地场所类型"
            align="center"
          ></el-table-column>
          <el-table-column
            prop="ssxq"
            label="所属校区"
            align="center"
          ></el-table-column>
          <el-table-column
            prop="ssjzw"
            label="所属建筑物"
            align="center"
          ></el-table-column>
          <el-table-column
            prop="placeInfoExtend"
            label="管理部门"
            align="center"
          >
          <template slot-scope="scoped">{{scoped.row['placeInfoExtend'].dept}}</template></el-table-column>
          <el-table-column
            prop="placeInfoExtend"
            label="楼层"
            align="center"
          >
          <template slot-scope="scoped">{{scoped.row['placeInfoExtend'].floor}}</template>
         </el-table-column>
        </el-table>
      </div>
    </div>
    <div class="wrapper-container" style="width: calc(100% - 20px);">
      <div class="bottom-block" style="display: block">
        <div class="text">当前共找到{{ total }}条记录,当前显示{{ startPage }}-{{ endPage }}条</div>
      </div>
      <div class="pagination-block">
        <el-pagination
          prev-text="上一页"
          next-text="下一页"
          :page-size="pageSize"
          layout="prev, pager, next, jumper"
          :total="total"
          @current-change="handleCurrentChange"
          :current-page="currentPage"
        >
        </el-pagination>
      </div>
    </div>
       <div class="btn-caozuo">
         <el-button type="success" size="mini" plain @click="savePlaceInfo()">确定</el-button>
         <el-button type="danger" size="mini" plain @click="cancelPlaceInfo()">取消</el-button>
      </div>
  </div>
</template>

<script>
import {queryCommonCdcsType, queryCommonJys, queryCommonXq, paike_listPlaceInfo} from "@/api/trainingManagement/place.js";

export default {
  data() {
    return {
      total: 0, //总条数
      pageSize: 50, //条数
      startPage: 0, //开始条数
      endPage: 0, //结束条数
      currentPage: 1, //当前页数

      semester1: "", //星期
      semester2: "", //星期
      semester3: "", //星期
      semesterList: [
        { label: "星期一", value: "1" },
        { label: "星期二", value: "2" },
        { label: "星期三", value: "3" },
        { label: "星期四", value: "4" },
        { label: "星期五", value: "5" },
        { label: "星期六", value: "6" },
        { label: "星期日", value: "7" },
      ], //星期列表
      startWeek: "", //开始周次
      endWeek: "", //结束周次
      weekList: [{ label: "1", value: "1" },{ label: "2", value: "2" },{ label: "3", value: "3" },
      { label: "4", value: "4" },{ label: "5", value: "5" },{ label: "6", value: "6" },{ label: "7", value: "7" },{ label: "8", value: "8" },{ label: "9", value: "9" },{ label: "10", value: "10" }],
      krnrs: "", //可容纳人数
      changdiType: "", //场地类型
      changdiTypeList: [], // 场地类型列表
      startDdate: "", //开始时间
      endDate: "", //结束时间
      startSection1: "", //开始节次：
      endSection1: "", //结束节次：
      startSection2: "", //开始节次：
      endSection2: "", //结束节次：
      startSection3: "", //开始节次：
      endSection3: "", //结束节次：
      xiaoqu: "", //校区
      xiaoquList: [], //
      jxl: "", //教学楼
      jxlList: [],
      sectionList: [{ label: "1", value: "1" },{ label: "2", value: "2" },{ label: "3", value: "3" },
      { label: "4", value: "4" },{ label: "5", value: "5" },{ label: "6", value: "6" },{ label: "7", value: "7" },{ label: "8", value: "8" },{ label: "9", value: "9" },
      { label: "10", value: "10" },{ label: "11", value: "11" },{ label: "12", value: "12" },{ label: "13", value: "13" },
      { label: "14", value: "14" },{ label: "15", value: "15" },{ label: "16", value: "16" },
      { label: "17", value: "17" },{ label: "18", value: "18" },{ label: "19", value: "19" },{ label: "20", value: "20" }], //节次列表
      queryWeekList: [], //星期查询
      // 选择列表数据
      multipleSelection: [],
      query_date: true, //查询方式
      query_week: "", //
      tableData: [],
    };
  },
  created() {},
  mounted() {
    this.queryCommonCdcsType();
    this.queryCommonJys();
    this.queryCommonXq();
  },
  methods: {
    savePlaceInfo() {
      this.$emit("savePlaceInfo", this.multipleSelection);
    },
    cancelPlaceInfo() {
      this.$emit("cancelPlaceInfo");
    },
    handleCurrentChange(val) {
      this.currentPage = val;
      this.queryPlaceIjnfo();
    },
    // 获取场地信息
    async queryPlaceIjnfo() {
      var paikeWeekCourseList = [];
      if (this.semester1 != "" && this.semester1 != null && this.startSection1 != "" && this.startSection1 != null
      && this.endSection1 != "" && this.endSection1 != null) {
        let min = parseInt(this.startSection1);
        let max = parseInt(this.endSection1);
        if (min > max) {
          this.$message.warning("请选择正确的上课节次!");
          return;
        }
        let course = [];
        for (let i = min; i <= max; i++) {
          course.push(i);
        }
        paikeWeekCourseList.push( {
          week: this.semester1,
          courses: course
        })
      } else {
        this.$message.warning("请先选择星期及周次!")
        return;
      }
      if (this.semester2 != "" && this.semester2 != null && this.startSection2 != "" && this.startSection2 != null
      && this.endSection2 != "" && this.endSection2 != null) {
        let min = parseInt(this.startSection2);
        let max = parseInt(this.endSection2);
        if (min > max) {
          this.$message.warning("请选择正确的上课节次!");
          return;
        }
        let course = [];
        for (let i = min; i <= max; i++) {
          course.push(i);
        }
        paikeWeekCourseList.push( {
          week: this.semester2,
          courses: course
        })
      }
      if (this.semester3 != "" && this.semester3 != null && this.startSection3 != "" && this.startSection3 != null
      && this.endSection3 != "" && this.endSection3 != null) {
        let min = parseInt(this.startSection3);
        let max = parseInt(this.endSection3);
        if (min > max) {
          this.$message.warning("请选择正确的上课节次!");
          return;
        }
        let course = [];
        for (let i = min; i <= max; i++) {
          course.push(i);
        }
        paikeWeekCourseList.push( {
          week: this.semester3,
          courses: course
        })
      }
      var courseWeeksQueryRange = []; //周次
      if (this.endWeek != "" && this.endWeek != null && this.startWeek != "" && this.startWeek != null) {
        let min = parseInt(this.startWeek);
        let max = parseInt(this.endWeek);
        if (min > max) {
          this.$message.warning("请选择正确的上课节次!");
          return;
        }
        let course = [];
        for (let i = min; i <= max; i++) {
          course.push(i);
        }
        courseWeeksQueryRange = course;
      } else {
        this.$message.warning("请先选择周次")
      }

      var data = {
         "courseWeeksQueryRange": courseWeeksQueryRange, // 周次
          "paikeWeekCourseList": paikeWeekCourseList,
          "placeInfo": {
              "cdlx": this.changdiType,
              "ssjzw": this.jxl,
              "ssxq": this.xiaoqu,
              "krnrs": this.krnrs
          }
      }
      const res = await paike_listPlaceInfo(data);
      if (res.data.code == 200) {
        this.tableData = res.data.data;
        // this.tableData = res.data.data.records;
        // this.total = res.data.data.total;
        // var length = this.tableData.length;
        // this.calculatePage(
        //   this.pageSize,
        //   res.data.data.current, length);
      }

      this.tableData = [
        {
            "id": "5",
            "cdmc": "测试操场5",
            "cdlx": "测试类型",
            "ssjzw": "测试建筑物",
            "ssxq": "测试校区",
            "mj": "2000",
            "krnrs": 200,
            "createUserName": "",
            "updateUserName": "",
            "placeInfoExtend": {
                "id": "5",
                "noconflict": "0",
                "dept": "部门1",
                "floor": "1楼"
            }
        },
        {
            "id": "7",
            "cdmc": "场地7",
            "cdlx": "测试类型",
            "ssjzw": "测试建筑物",
            "ssxq": "测试校区",
            "mj": "4000",
            "krnrs": 400,
            "createUserName": "",
            "updateUserName": "",
            "placeInfoExtend": {
                "id": "7",
                "noconflict": "0",
                "dept": "部门1",
                "floor": "3楼"
            }
        },
        {
            "id": "3",
            "cdmc": "场地3",
            "cdlx": "测试类型",
            "ssjzw": "测试建筑物",
            "ssxq": "测试校区",
            "mj": "4000",
            "krnrs": 400,
            "createUserName": "",
            "updateUserName": "",
            "placeInfoExtend": {
                "id": "3",
                "noconflict": "1",
                "dept": "部门1",
                "floor": "3楼"
            }
        },
        {
            "id": "1",
            "cdmc": "测试操场",
            "cdlx": "测试类型",
            "ssjzw": "测试建筑物",
            "ssxq": "测试校区",
            "mj": "2000",
            "krnrs": 200,
            "createUserName": "",
            "updateUserName": "",
            "placeInfoExtend": {
                "id": "1",
                "noconflict": "0",
                "dept": "部门1",
                "floor": "1楼"
            }
        },
        {
            "id": "4",
            "cdmc": "场地4",
            "cdlx": "测试类型",
            "ssjzw": "测试建筑物",
            "ssxq": "测试校区",
            "mj": "2000",
            "krnrs": 500,
            "createUserName": "",
            "updateUserName": "",
            "placeInfoExtend": {
                "id": "4",
                "noconflict": "0",
                "dept": "部门1",
                "floor": "4楼"
            }
        },
        {
            "id": "6",
            "cdmc": "场地6",
            "cdlx": "测试类型",
            "ssjzw": "测试建筑物",
            "ssxq": "测试校区",
            "mj": "3000",
            "krnrs": 300,
            "createUserName": "",
            "updateUserName": "",
            "placeInfoExtend": {
                "id": "6",
                "noconflict": "1",
                "dept": "部门1",
                "floor": "2楼"
            }
        },
        {
            "id": "2",
            "cdmc": "场地2",
            "cdlx": "测试类型",
            "ssjzw": "测试建筑物",
            "ssxq": "测试校区",
            "mj": "3000",
            "krnrs": 300,
            "createUserName": "",
            "updateUserName": "",
            "placeInfoExtend": {
                "id": "2",
                "noconflict": "1",
                "dept": "部门1",
                "floor": "2楼"
            }
        },
        {
            "id": "8",
            "cdmc": "场地8",
            "cdlx": "测试类型",
            "ssjzw": "测试建筑物",
            "ssxq": "测试校区",
            "mj": "2000",
            "krnrs": 500,
            "createUserName": "",
            "updateUserName": "",
            "placeInfoExtend": {
                "id": "8",
                "noconflict": "0",
                "dept": "部门1",
                "floor": "4楼"
            }
        }
    ]
    },
    // 计算开始和结束条数
    calculatePage(pageSize, current, length) {
      if (current == 1) {
        if (length != 0) {
          this.startPage = 1;
          this.endPage = length;
        }
      } else {
        this.startPage = pageSize * (current - 1) + 1;
        this.endPage = parseInt(this.startPage)  + parseInt(length) - 1;
      }
    },
    // 获取校区
    async queryCommonXq() {
      const res = await queryCommonXq();
      if (res.data.code == 200) {
        this.xiaoquList = res.data.data;
        this.xiaoqu = this.xiaoquList[0].id;
      }
    },
    // 获取教研室
    async queryCommonJys() {
      const res = await queryCommonJys();
      if (res.data.code == 200) {
        this.jxlList = res.data.data;
        this.jxl = this.jxlList[0].id;
      }
    },
    // 获取场地场所类型
    async queryCommonCdcsType() {
      const res = await queryCommonCdcsType();
      if (res.data.code == 200) {
        this.changdiTypeList = res.data.data;
        this.changdiType = this.changdiTypeList[0].id;
      }
    },
    // 表格选择事件
    handleSelectionChange(val) {
      this.multipleSelection = val;
    },
  },
  computed: {}, //计算属性
};
</script>
<style lang="less" scoped>
.assessment-container {
  .el-dialog__body {
    height: 251px;
  }
  .el-dialog__footer {
    padding: 10px 20px 45px;
  }
  .el-checkbox__inner:hover {
    border-color: #004ca7;
  }
  .el-checkbox__inner {
    border: 1px solid #004ca7;
    border-radius: 0;
    height: 18px;
    width: 18px;
  }
  .el-checkbox__inner::after {
    height: 10px;
    left: 6px;
  }
  .el-checkbox__input.is-checked .el-checkbox__inner,
  .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #004ca7;
    border-color: #004ca7;
  }
  .el-checkbox__input.is-checked + .el-checkbox__label {
    color: #004ca7;
  }
  .el-checkbox.is-bordered.is-checked {
    border-color: #004ca7;
  }
  .el-checkbox__input.is-focus .el-checkbox__inner {
    border-color: #004ca7;
  }
}
</style>
<style lang="less" scoped>
@import "../../../../styles/text.less";
.pagination-block {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
</style>
<style lang="less" scoped>
@import "../../../../styles/supervision.less";

.wrapper-container {
  width: 1711px;
  margin: 0 auto;
}

/deep/ .table-container {
  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }

  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 76px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }

  .wrapper-button {
    display: flex;
    flex-direction: column;
    align-items: center;

    > div {
      margin-bottom: 8px;
    }
  }
  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    /*border-radius: 9px;*/
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}

.wrapper-container .search-container .search-container-left {
  flex-wrap: wrap;
  .search-container-item {
    width: 12%;
    margin-right: 0px;
    .box {
      > span {
        text-align: left;
      }
      display: flex;
      justify-content: space-evenly;
      margin-bottom: 20px;
      align-items: center;
    }
  }
}

/deep/.el-date-editor.el-input {
  width: 110px;
}
/deep/ .el-input--medium {
  width: 110px;
  .el-input__inner {
    height: 28px;
    width: 110px;
    padding: 0px 18px;
  }
}
/deep/ .el-table thead {
  color: #004ca7 !important;
}

.btn {
  margin-top: 271px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 271px;
  .submit {
    width: 84px;
    height: 27px;
    line-height: 8px;
  }
}
.bottom-block {
  // display: flex;
  flex-direction: row;
  justify-content: space-between !important;
  .export-button {
    width: 127px;
    height: 27px;
    background: #fff6ef;
    border: 1px solid #f3b815;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    > img {
      width: 17px;
      height: 17px;
    }
    > span {
      margin-left: 12px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #f3b815;
    }
  }
  .text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    line-height: 39px;
    color: #004ca7;
  }
}

.top-border {
  border: 1px solid #004ca7;
  padding: 20px;
  border-radius: 5px;

  .query-title {
    color: #004ca7;
    font-weight: bold;
  }
}

.query-date {
  .query-item {
      display: flex;
          align-items: center;
      margin: 20px;
      /deep/ .el-input__inner {
        height: 28px;
      }
  }

  .red {
    color: red;
  }
}
.search-button {
  width: 77px;
  height: 28px;
  line-height: 28px;
  background: #f1f8fe;
  border: 1px solid #51aef6;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  > span {
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #51aef6;
  }
  > img {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }
}

.mar-lef-2 {
        margin-left: 20px;
}
.mar-rig-2 {
margin-right: 20px;
}
.undeLine {
    text-decoration:underline;
    cursor: pointer;
}
.btn-caozuo {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 800px;
  margin: 0 auto;
  padding-top: 50px;
}

.assessment-container {
  width: calc(100% - 20px);
  .table-container {
     width: 100%;
  }
}
</style>

<style lang="less" scoped>
  #recommended-site{
    /deep/ .el-button--warning.is-plain{
      background: #FFF6EF;
      border-color: #F3B815;
      color: #F3B815;
      border-radius: 6px;
    }
    /deep/ .el-button--warning.is-plain:focus, .el-button--warning.is-plain:hover{
      color: #F3B815;
      background: #FFF6EF;
      border: 1px solid #F3B815;
      border-radius: 6px;
    }

    /deep/ .el-button--success.is-plain{
      background: #F1FFF8;
      border-color: #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }
    /deep/ .el-button--success.is-plain:hover{
      background: #F1FFF8;
      border: 1px solid #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain{
      background: #F1F8FE;
      border-color: #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain:hover{
      background: #F1F8FE;
      border: 1px solid #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain{
      background: #FFEFEF;
      border-color: #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain:hover{
      background: #FFEFEF;
      border: 1px solid #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }
  }
</style>
